package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._24访问者模式._4男人女人;

//恋爱
class Amativeness extends Action{
    public void getManConclusion(Man concreteElementA){
        System.out.println(concreteElementA.getClass().getSimpleName()
            +" "+this.getClass().getSimpleName()+"时，凡事不懂也要装懂。");
    }    

    public void getWomanConclusion(Woman concreteElementB){
        System.out.println(concreteElementB.getClass().getSimpleName()
            +" "+this.getClass().getSimpleName()+"时，遇事懂也装作不懂。");
    }
}